// 用户相关接口
import request  from '@/utils/request';
import type { loginForm, loginResData, userInfoResData} from './type.ts'

enum API {
  // 获取用户信息
  LOGIN_URL = '/user/login',
  // 获取用户收藏列表
  USERINFO_URL = '/user/info'
}
// 登录接口
export const reqLogin = (data: loginForm) => request.post<any, loginResData>(API.LOGIN_URL, data);
export const reqUserInfo = () => request.get<any, userInfoResData>(API.USERINFO_URL);